let url=require('url');
let str='https://www.baidu.com/s?ie=UTF-8&wd=%E7%8C%AB%E5%92%AA%E7%A9%BF%E8%A1%A3%E6%9C%8D';
let obj=url.parse(str,true);
console.log(obj);